package com.starry.home.ui.dialog

import android.annotation.SuppressLint
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import com.airbnb.lottie.LottieAnimationView
import com.starry.home.R

/**
 * Package:com.starry.home.ui.dialog
 * Author:starr
 * Time:2024/4/25 12:15
 * Description:
 */

class LoadingAlertDialog @JvmOverloads
constructor(context: Context?, canCancel: Boolean = true) :
    Dialog(context!!, R.style.LoadProgressDialog) {
    @SuppressLint("ResourceType")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.dialog_loadding_alert)
        val loadingImage = findViewById<LottieAnimationView>(R.id.loading_image)
        setCanceledOnTouchOutside(false)
    }
}